using System;
using UnityEngine;

// 放置类型枚举
public enum PlacementType
{
    OpenSpace, // 空地
    NearWall // 靠近墙壁
}

[CreateAssetMenu(menuName = "Dungeon/ItemData")]
public class ItemData : ScriptableObject {
    [Header("物品图片")]
    public Sprite sprite;
    [Header("物品大小")]
    public Vector2Int size;
    [Header("放置类型枚举")]
    public PlacementType placementType;
    [Header("是否添加偏移量,可以有效防止物品阻塞路径")]
    public bool addOffset;
}

[Serializable]
public class ItemDataInfo {
    public ItemData itemData;
    public int minQuantity;//最小数量
    public int maxQuantity;//最大数量
}